package com.wang.common.aes;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author wang
 * @Date 2024/9/22 18:17
 * @PackageName:com.wang.common.properties
 * @ClassName: EncryptProperties
 * @Description: TODO
 * @Version 1.0
 */
@Component
@ConfigurationProperties(prefix = "encrypt")
public class EncryptProperties {

    private String key = "1234567890123456";  // AES 密钥 (16 字节)
    private String iv = "1234567890123456";   // IV 向量 (16 字节)

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }
}
